ifeq ($(OS),Windows_NT)
	CC=g++
	CFLAGS=-Wall -Wno-comment -Wno-unknown-pragmas -Iinclude
	LFLAGS=-Llib -lglfw -lopengl32 -lglew32 -lfreetype
	TARGET=main.exe
else
	CC=g++
	CFLAGS=-Wall -Wno-comment -Wno-unknown-pragmas -Iinclude
	LFLAGS=-lglfw -lGL -lGLEW
	TARGET=main
endif

default: clear main.o
	$(CC) main.o $(LFLAGS) -o $(TARGET)

main.o:
	$(CC) $(CFLAGS) -c main.cpp
	
clear:
	rm -f *.o
	rm -f $(TARGET)
